<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org"
	th:replace="fragments/frame::frame(~{fragments/menu::menu(1)}, 
		~{::th}, ~{::tr})">
<!-- 		不需要表单就用普通的frame -->
<head></head>
<body>
	<th>课程名称</th>
	<th>开课教师编号</th>
	<th>第几周开始</th>
	<th>第几周结束</th>
	<th>星期几上课</th>
	<th>第几节课</th>
	<th>教室名称</th>
	<th>课程类型</th>
	<th>课程状态</th>
	<th>操作</th>

	<tr th:each="cinfo : ${list}">
		<th:block th:with="c=${cinfo.course}">
			<td><input type="checkbox" id="check-all" class="flat"></td>
			<td th:text="${c.name}">Web高级编程</td>
			<td th:text="${cinfo.teacher}">张恒锋</td>
			<td th:text="${c.startweek}">10</td>
			<td th:text="${c.endweek}">17</td>
			<td th:text="${c.dayofweek}">1</td>
			<td th:text="${c.lesson}">2</td>
			<td th:text="${c.classroom}">C202</td>
			<td th:text="${c.type==0 ? '非实验课' : '实验课'}">非实验课</td>
			<td th:if="${c.state==0}">还未通过审核</td>
			<td th:if="${c.state==1}">审核通过</td>
			<td th:if="${c.state==2}">审核不通过</td>
			<td th:if="${c.state==3}">已结课</td>
			<td>
				<!-- 如果不需要表单，那就直接用链接的形式来请求 --> <a class="btn-sm btn-success"
				th:href="@{review-course(course=${c.no}, state='1')}">通过</a> <a
				class="btn-sm btn-danger"
				th:href="@{review-course(course=${c.no}, state='2')}">拒绝</a>
			</td>
		</th:block>
	</tr>

</body>
</html>